package com.sky.myapplication.kotlin.kotlinFragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.sky.myapplication.R
import java.awt.font.TextAttribute

/**
 * @Author: Minxp
 * @UpdateDate: 2021/7/8 0008
 * @Description: java类作用描述
 */
class ViewPageFragment: Fragment() {

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        var mContent = arguments?.get("content") as String
        var view = inflater.inflate(R.layout.fragment_view_page, container, false)
        var tvText: TextView? = view.findViewById(R.id.tv_text)
        tvText?.text = mContent

        return view
    }
}